home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / util / conv / pc2doc.lha / PC2Doc / Instruction < prev    next >
Encoding:
Text File  |  1999-08-01  |  2.4 KB  |  122 lines

  1.  
  2. This Program is FREEWARE, THERE IS NO WARRATY FOR THIS PROGRAM
  3. **************************************************************
  4.  
  5.  
  6. pc2doc
  7. ******
  8.  
  9. converts ASCII-texts (PC or AMIGA) into a paragraph-format, whereas
  10. umlauts are replaced and PC-CRs removed.
  11.  
  12. However, this program is not a YACREM (Yet Another CR rEMover) or
  13. normal ASCII converter.
  14.  
  15.  
  16. Motivation
  17. **********
  18.  
  19. I came across some large files from the internet and wanted to print
  20. them out using a wordprocessor. Unfortunately I had to deal with several problems:
  21.  
  22.   - indented paragraphs/ whole passages
  23.   - blanks/ tabs
  24.   - no blank lines between paragraphs
  25.   - double blank characters
  26.   - several different delimiter
  27.   - PC-unlauts
  28.   - word wraps
  29.  
  30. Simple removing of the CRs or connecting of the lines didn't lead to the desired succes.
  31. As I couldn't find a proper program on the Aminet, I had to beardown my laziness and to
  32. write a program on my own using AmigaE.
  33.  
  34. What it does:
  35.  
  36.  
  37. AAAAAAAAAAAAAAAA
  38.  
  39. 111111111
  40. *********
  41.  
  42. 2 2222 2222 22222:
  43. ------------------
  44.  
  45. 3 33333333333333
  46. ~~~~~~~~~~~~~~~~
  47.  
  48. A AAAAA AAAA A  AA A A AA A AA
  49. AAA A A A AAAA A A A A A A A A AAAA.
  50.  
  51. ***
  52.  
  53. B BBBB B BBBB B BBBB BBBB
  54. BBB B BBBBB B BBBBB B BBB,
  55. BBBBB BBBBBB BBBBB BBBBB
  56.    BBBBBBB BBBBBB BBBB
  57.    BBB BBBBBBBBBBBB BBBB
  58.    BBBB BBBBBBBBB BBBBBB.
  59.  
  60. C CC   CCCCCCC  CCCCCCCCC  CCC.
  61.  
  62. END
  63.  
  64.  
  65. |
  66. ====  becomes   ====>
  67. |
  68.  
  69.  
  70. AAAAAAAAAAAAAAAA
  71.  
  72. 111111111
  73. *********
  74.  
  75. 2 2222 2222 22222:
  76. ------------------
  77.  
  78. 3 33333333333333
  79. ~~~~~~~~~~~~~~~~
  80.  
  81. A AAAAA AAAA A AA A A AA A AA AAA A A A AAAA A A A A A A A A AAAA.
  82.  
  83. ***
  84.  
  85. B BBBB B BBBB B BBBB BBBB BBB B BBBBB B BBBBB B BBB, BBBBB BBBBBB BBBBB BBBBB BBBBBBB BBBBBB BBBB BBB BBBBBBBBBBBB BBBB BBBB BBBBBBBBB BBBBBB.
  86.  
  87. C CC CCCCCCC CCCCCCCCC CCC.
  88.  
  89. END
  90.  
  91.  
  92.  
  93. Usage from Shell:
  94. *****************
  95.  
  96. FILE/A,NS=NOTSMART/S,L=LENGTH/S,RS=REMOVESPACES/S,IFS=IGNOREFIRSTSPACES/S,
  97. NMS=NOMULTIPLESPACES/S:
  98.  
  99.  
  100.              FILE: file to load
  101.            LENGTH: use linelength to determine paragraph
  102.      REMOVESPACES: remove leading and ending spaces
  103. IGNOREFIRSTSPACES: leading spaces will be ignored when searching for paragraphs
  104.  NOMULTIPLESPACES: multiple spaces are substituted for a single space
  105.  
  106.  
  107. The given file isn't changed, instead a new file with the postfix ".doc" will be created,
  108. no matter if it already exists or not!
  109.  
  110.  
  111. For those of you who want to use a GUI, I recommend the program 'R' © by Guido Mersmann.
  112.  
  113.  
  114.  
  115. Author:
  116. ~~~~~~
  117.  
  118. Questions, suggestions, bugs, etc. to
  119.  
  120. Alexander Döller
  121. <adoeller@wtal.de>
  122.